package com.wc.alorithm_luogu.P1554;

import java.util.Scanner;

/**
 * @Author congge
 * @Date 2023/4/21 14:32
 * @description https://www.luogu.com.cn/problem/P1554
 * 梦中的统计
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int begin = sc.nextInt();

        int end = sc.nextInt();

        int tmp;
        // 存放答案
        int[] ans = new int[10];
        for (int i = begin; i <= end; i++) {
            tmp = i;
            while (tmp != 0) {
                ans[tmp % 10]++;
                tmp /= 10;
            }
        }

        System.out.print(ans[0]);
        for (int i = 1; i < ans.length; i++) {
            System.out.print(" " + ans[i]);
        }
    }
}
